FROM ubuntu:20.04

LABEL org.label-schema.name="wine python 3.10.11"
LABEL org.label-schema.description="wine python environment for building and testing pyinstaller projects"

USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
RUN apt-get update && apt-get install -y wget gnupg software-properties-common apt-utils winetricks xvfb
ENV WINE_PATH=/wine
RUN mkdir -p $WINE_PATH
WORKDIR $WINE_PATH
COPY wine-python-installer.sh wine-python-installer.sh
COPY wine-pip.sh wine-pip.sh
COPY wine-python.sh wine-python.sh
RUN ./wine-python-installer.sh
